//
//  DatePickerCell.h
//
//  Created by Olof Millberg on 2010-04-08.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol WODatePickerDelegate
- (void) dateChanged:(NSDate *)newDate;
@end

@interface DatePickerCell : UITableViewCell <UIActionSheetDelegate> 
{
	UIButton* dateLabel;
	UIButton* previousButton;
	UIButton* nextButton;
	NSDate* currentDate;
	UIDatePicker *datePicker;
	id<WODatePickerDelegate> delegate;
	BOOL enabled;
}

@property (nonatomic, retain) IBOutlet UIButton* dateLabel;
@property (nonatomic, retain) IBOutlet UIButton* nextButton;
@property (nonatomic, retain) IBOutlet UIButton* previousButton;
@property (nonatomic, retain) NSDate* currentDate;
@property (nonatomic, assign) id<WODatePickerDelegate> delegate;
@property (nonatomic, assign) BOOL enabled;

- (IBAction) nextDate;
- (IBAction) previousDate;
- (IBAction) showDatePicker;

@end
